<!--调用子组件-->
<app-title #titleDom [chiildTitle]="title" (addList)="addListFun($event)"></app-title>

<p>父组件</p>
<button (click)="changeTitle()">改变子组件值</button>
<button (click)="addBtnFun1()">调用子组件方法</button>
<p *ngFor="let item of list">{{item}}</p>

<p>通过服务展示的数据</p>
<button (click)="addBtnFun2()">调用服务方法方法</button>
<p *ngFor="let item of jishus">{{item}}</p>

<p>路由跳转</p>
<a [routerLink]="['/home/list']" routerLinkActive="router-link-active">list</a>

<!--home路由下下子路由渲染的位置-->
<router-outlet></router-outlet>


